home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990: Discy Business / Discy Business.2mg / DEV.CD / GUIDED.TOURS / IIC.PLUS.TOUR / BASIC / PRINT.TEXT < prev    next >
Encoding:
Text File  |  1986-03-04  |  1.4 KB  |  92 lines  |  [04] ASCII Text (0x0000)

  1. %
  2. 3
  3. 12
  4. 1
  5. 38 
  6. PRINTING NUMBERS AND CALCULATIONS
  7.  
  8. In this lesson, you'll learn how
  9. to use the PRINT statement to 
  10. make Applesoft BASIC display 
  11. numbers and calculations on 
  12. your screen.
  13. ^
  14. %
  15. 3
  16. 9
  17. 1
  18. 38
  19. Let's start with numbers.  To 
  20. print a number, you type PRINT, 
  21. then a number, and then press 
  22. RETURN.  Watch this...
  23. ^
  24. &
  25. When you press RETURN, the 
  26. computer prints whatever number 
  27. you type after the PRINT 
  28. statement.
  29. ^
  30. &
  31. Notice that the statement appears
  32. next to a prompt.  It's called a 
  33. prompt because it prompts you for
  34. information.
  35. ^
  36. &
  37. Now it's your turn.  Type PRINT,
  38. follow it with a number, then
  39. press RETURN.
  40. ^
  41. %
  42. 3
  43. 10
  44. 1
  45. 38
  46. Pretty simple, eh?  Simple, but
  47. not too useful.  Now let's really
  48. put your Apple II to work and get
  49. it to print the results of some 
  50. calculations. 
  51. ^
  52. &
  53. You can use the computer to do
  54. calculations--such as addition,
  55. subtraction, multiplication, and 
  56. division--and print the answer on
  57. the screen.
  58. ^
  59. &
  60. Let's say you don't have your
  61. pocket calculator handy, but
  62. need to find out how much 345
  63. plus 439 equals.  To find out,
  64. you could type...
  65. ^
  66. %
  67. 3
  68. 9
  69. 1
  70. 38  
  71. And the computer calculates
  72. the answer almost instantly!
  73. ^
  74. &
  75. Now it's your turn to try
  76. an addition problem (Don't
  77. forget to start with PRINT).
  78. ^
  79. %
  80. 3
  81. 12
  82. 1
  83. 38
  84. OK, now you know how to use 
  85. the PRINT statement to print the
  86. results of calculations.  But
  87. suppose you want to print words?
  88. Press RETURN to go to the lesson 
  89. on printing words, or press ESC
  90. to return to the menu.
  91. ^
  92.